
/* Display the address of variable using "address of operator (&)"
 * Address of any variable is always unsigned integer 
 * so use (%u) notation in printf statement to display address.
 * (%p) can also be used instead.
 * What is difference in %p and %u
 * %p - dispays address in HEX code
 * %u - dispaly address in decimal
 * Here, to display '%' in printf don't use '\%' instead use '%%'
 */

#include <stdio.h>

int main()
{
	int i = 3;

	printf("Values of i = %d\n", i);
	printf("Address of i in hexadecimal (with %%u) = %u\n", &i);
	printf("Address of i in decimal (with %%p) = %p\n", &i);

	return 0;
}
